package controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import dao.TestDAO;

@Controller
public class Test {

  @Autowired
  private TestDAO dao;
  
  @RequestMapping(value="test")
  public String test(int id,ModelAndView mv){
//    User u = this.dao.selectOne(id);
//    mv.addObject("user",u);
//    mv.setViewName("index");
    mv.addObject("1");
    return "1";
  }
}
